import request from '@/utils/request/base'

//  获取组织人数
export function getgroupcount(data) {
    return request({
      url: '/sales/man/get/my/group/count',
      method: 'get',
      data
    })
}

// 身份认证
export function makesurePerson(data) {
    return request({
      url: '/sales/man/verify/information',
      method: 'post',
      data
    })
}
// 关注店铺
export function follwRoom(roomId,data) {
    return request({
      url:"/sales/man/follow/room/"+roomId,
      method: 'post',
      data
    })
}
// 获取验证码
export function getCode(data) {
    return request({
      url:"/sales/man/verify/information/sms",
      method: 'post',
      data
    })
}
// 等级查询/sales​/man​/list​/my​/level
export function levelList(params) {
    return request({
      url:'​/sales/man/list/my/level',
      method: 'get',
      params
    })
}

// 判断店铺是否关注/sales​/man​/is​/follow​/room​/
export function isfollow(roomId,data) {
    return request({
      url:"/sales/man/is/follow/room/"+roomId,
      method: 'post',
      data
    })
}
// 解除关注
export function delfollow(roomId,data) {
    return request({
      url:"/sales/man/unfollow/room/"+roomId,
      method: 'post',
      data
    })
}
// 获取关注列表
export function followList(params) {
    return request({
      url:"/sales/man/follow/room/list",
      method: 'get',
      params
    })
}
// 统计上下级人数
export function levelCount(params) {
  return request({
    url:"/sales/man/count/my/level",
    method: 'get',
    params
  })
}

// 提现的验证码
export function getMoneyCode(data) {
  return request({
    url:"/sales/man/withdraw/sms",
    method: 'post',
    data
  })
}
// 实现提现
export function getMoney(data) {
  return request({
    url:"/sales/man/withdraw",
    method: 'post',
    data
  })
}
// 提现列表
export function withdrawList(data) {
  return request({
    url:"/sales/man/withdraw/list",
    method: 'post',
    data
  })
}

// 上传图片
export function upload(url,data,headers={}) {
  return request({
    url,
    method: 'post',
    data,
    headers
  })
}



